package core.cwm;

public class ValidatorMgr {
	static private ValidatorMgr validator = null;
	private SSCondValidator ssCondValidator;
	private StarCondValidator starCondValidator;
	private ConstraintCondValidator constraintCondValidator;
	private ValidatorMgr() {
		ssCondValidator = new SSCondValidator();
		starCondValidator = new StarCondValidator();
		constraintCondValidator = new ConstraintCondValidator();
	}
	
	public static ValidatorMgr getInstance() {
		if(validator == null)
			validator = new ValidatorMgr();
		return validator;
	}
	
	public SSCondValidator getCWMSSCondValidator() {
		return ssCondValidator;
	}
	
	public StarCondValidator getCWMStarCondValidator() {
		return starCondValidator;
	}
	
	public ConstraintCondValidator getConstraintCondValidator() {
		return constraintCondValidator;
	}
}
